
    <link rel="stylesheet" href="../css/header.css">
    <link rel="stylesheet" href="../css/reset.css">

    <div id="head">
        <div class="head-con">
            <div class="left">
                <ul>
                    <li><a href="#">关于荣耀</a></li>
                    <li><a href="#">新闻</a></li>
                    <li><a href="#">荣耀官网</a></li>
                    <li><a href="#">会员</a></li>
                    <li><a href="#">企业购</a></li>
                    <li><a href="#">荣耀俱乐部</a></li>
                </ul>
            </div>
            <div class="center">
                <a class="ce" href="logonZhu.html">注册</a>
                <span class="pan"></span>
                <a class="lu" href="logonDeng.html">登录</a>
                <h6></h6>
                <button class="off">退出登录</button>
            </div>
            <div class="right">
                <ul>
                    <li><a href="#">我的订单</a></li>
                    <li><a href="#"><img src="../image/购物车.png" alt=""><span>购物车</span></a><div class="go">
                        购物车还没有商品，快去选购吧
                    </div></li>
                    <li><a href="#">手机端<img src="../image/向下箭头_小.png" alt=""></a><div class="down">
                        <div class="t"><img src="" alt=""></div>
                    </div></li>
                </ul>
            </div>
        </div>
    </div>
    <script src="../js/jQuery.js"></script>
    <script>
        
                if(localStorage.getItem("username")){
                $("h6").html("你好!"+localStorage.getItem("username"))
              
                $(".ce").css({
                    display:"none"
                }) ;
                $(".lu").css({
                    display:"none"
                });
                $(".pan").css({
                    display:"none"
                }) 
                $(".off").css({
                        display:"inline-block"
                    });
                }else{
                    $("h6").html("你好,请登录")
                    
                }
                $(".off").click(function(){
                    localStorage.removeItem("username");
                    location.href = "index.html"
                });
    
        
    </script>
